package com.demo.prac;

import com.baomidou.mybatisplus.mapper.Condition;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.demo.entity.User;
import com.demo.service.UserService;
import utils.BeanFactory;


import java.util.LinkedList;
import java.util.List;

/**
 * @Description:
 * @author: fanfan
 * @date: 2018/5/11 16:29
 */
public class TestStringBuff {

    public static void  main(String args[]){
//        UserService userService= BeanFactory.getBean(UserService.class);
        List<String> list=new LinkedList<>();
        for(int i=0;i<10;i++){
            list.add(String.valueOf(i));
        }
        System.out.println("list为："+list);
        StringBuffer stringBuffer=new StringBuffer();
        Wrapper<User> con=new Condition();
        con.eq("user_type","B");
//        List<User> users = userService.selectList(con);
        for(String i:list){
            stringBuffer.append("'").append(i).append("'").append(",");
        }
        stringBuffer.deleteCharAt(stringBuffer.length()-1);
        System.out.println(stringBuffer);
    }
}
